package com.xbongbong.admin.model.impl;

import com.xbongbong.admin.domain.dao.WorkOrderTemplateRetainDao;
import com.xbongbong.admin.domain.entity.WorkOrderTemplateRetainEntity;
import com.xbongbong.admin.model.WorkOrderTemplateRetainModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author guohui.zhang
 * @Title: 工单模板备份表
 * @date 2020/3/1914:38
 */
@Service("workOrderTemplateRetainModel")
public class WorkOrderTemplateRetainModelImpl implements WorkOrderTemplateRetainModel {

    @Resource
    private WorkOrderTemplateRetainDao workOrderTemplateRetainDao;

    @Override
    public Integer insertBatch(List<WorkOrderTemplateRetainEntity> entities) {
        return workOrderTemplateRetainDao.insertBatch(entities);
    }


    @Override
    public List<WorkOrderTemplateRetainEntity> findEntitys(Map<String, Object> param) {
        return workOrderTemplateRetainDao.findEntitys(param);
    }

    @Override
    public Integer deleteBatch(List<Long> oldIds, String corpid) {
        return workOrderTemplateRetainDao.deleteBatch(oldIds,corpid);
    }

    @Override
    public Integer deleteByAppId(Long appId, String corpid) {
        return workOrderTemplateRetainDao.deleteByAppId(appId,corpid);
    }

    @Override
    public Integer updateBatch(List<WorkOrderTemplateRetainEntity> entities, String corpid) {
        return  workOrderTemplateRetainDao.updateBatch(entities,corpid);
//        return null;
    }


}
